package week06;

public class CartService {
    private MemberStrategy strategy;

    public double calcPrice(double price){
        this.strategy=new IntermediateMember();
        return strategy.calcPrice(price);
    }

    public static void main(String[] args) {
        CartService cartService=new CartService();
        double total= cartService.calcPrice(90);
        System.out.println(total);
    }
}
